<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./js/vue.js"></script>
    <script type="text/javascript" src="./js/jquery.min.js"></script>
    <script src="./js/axios-0.18.0.js"></script>
</head>
<body>
<div id="app">
    <form :model="formData" enctype="multipart/form-data">
        请输入直播间地址<input type="text" name="itcastUrl" v-model="formData.itcastUrl"><br/>
        上传班级花名册<input type="file" name="uploadFile" v-on:change="formData.uploadFile"><br/>
        <!--<input type="submit" value="提交" @click="handleSub()">-->
        <button @click="handss()">获取未在线student</button>
    </form>
    <ul>
        <li v-for="stu in outLine">{{stu}}</li>
    </ul>
</div>

</body>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            formData: {},//表单数据
            outLine: [] //未在线人数
        },
        methods: {
            handleSum() {
               axios.post("/consumer/selectOutLine", this.formData).then((res) => {
                    this.outLine = res.data.list;
                })
            }
        }
    })
</script>
</html>